import api from "@/utils/api";
import type {Dayjs} from "dayjs";

export function getLoginLog(startDay?: Dayjs, endDay?: Dayjs) {
    return api.get("/log/login", {
        params: {
            startDay: startDay && (startDay.format('YYYY-MM-DD') + ' 00:00:00'),
            endDay: endDay && (endDay.format('YYYY-MM-DD') + ' 24:00:00'),
        }
    })
}
export function getVideoLog() {
    return api.get("/log/video");
}